Make WordPress Core

Opened 3 years ago

Closed 8 days ago

Last modified 7 days ago

#57737 closed defect (bug) (invalid)

Start composing post with same title as existing post, click Preview, post_title is set to point to existing post

Reported by: jikamens's profile jikamens Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.1.1
Component: Posts, Post Types Keywords: has-test-info
Focuses: Cc:

Description

  1. Start composing a new post.
  2. Set the title of the post to be the same as the title of another recently published post.
  3. Click Preview and then Preview in new tab.
  4. Go look at the post_title column for the post in the wp_posts table in the database, and observe that it's pointing at the existing post whose title you used, not the new post.

If you then publish the post, its link on your home page will be to the old post, not the new one.

Change History (6)

#1 @jikamens
3 years ago

Hmm, I actually think the bug here is that there shouldn't be a link in the post_title field at all? I think it incorrectly inserts a link into the post_title field if you preview before a draft is saved?

This ticket was mentioned in Slack in #core-test by ironprogrammer. View the logs.


3 years ago

#3 @ironprogrammer
3 years ago

  • Keywords has-testing-info needs-testing added

Hi, @jikamens, and thank you for the report!

During test triage today, this wasn't reproducible on trunk. If it can be confirmed reproducible on 6.1.1, then there may have been a change that fixed it more recently. The updated keywords should draw some attention for someone to help repro.

#4 @wordpressdotorg
9 months ago

  • Keywords has-test-info added; has-testing-info removed

#5 follow-up: @r1k0
8 days ago

  • Keywords needs-testing removed
  • Resolution set to invalid
  • Status changed from new to closed

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 7.0-alpha-61499
  • PHP: 8.3.30
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
  • Browser: Chrome 144.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.1

Actual Results

  1. ❌ Error condition doesn't occur (not reproducible).
  2. The new post links to the correct post and not the one created before.

Additional Notes

  • Posts mainly use the post_nameor post_id to create links for posts, depending on how your permalink structure is set up.
  • Thus, two posts can't share the same link even if they have the same post_title.
  • post_title column contains the Post Title only and no links at all.

Supplemental Artifacts

ScreenCast:
https://files.catbox.moe/0g0teu.webm

#6 in reply to: ↑ 5 @jessicaneil
7 days ago

Replying to r1k0:

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 7.0-alpha-61499
  • PHP: 8.3.30
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
  • Browser: Chrome 144.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.1

Actual Results

  1. ❌ Error condition doesn't occur (not reproducible).
  2. The new post links to the correct post and not the one created before.

Additional Notes

  • Posts mainly use the post_nameor post_id to create links for posts, depending on how your permalink structure is set up.
  • Thus, two posts can't share the same link even if they have the same post_title.
  • post_title column contains the Post Title only and no links at all.

Supplemental Artifacts

ScreenCast:
https://shortu.me/0g0teu

I checked your screencast as you mentioned above. First it bit confusing but after watching 2 to 3 times. It has been resolved.

Note: See TracTickets for help on using tickets.